
$padding = $level * 35;
if ($row['isLink'] == 1) {
    $linkUrl = $projectUrl->projectUrl(array('module'=>$row['module'], 'controller'=>$row['controller'], 'action'=>$row['action'])) . $row['otherQueryString'];
    $linkString = "<a href=\"{$linkUrl}\" target=\"_blank\">查看</a>";
} else {
    $linkString = "无（菜单）";
}
$content = "

                        <tr class=\"dataLine\">
                            <td width=\"5%\" class=\"checkBoxTd\"><input type=\"checkbox\" name=\"selectId[]\" id=\"selectId\" class=\"selectCheckBox\" value=\"{$row['id']}\" parentIds=\"{$row['parentIds']}\" dbid=\"{$row['id']}\" /></td>
                            <td width=\"8%\" align=\"center\">{$row['id']}</td>
                            <td align=\"left\"><div style=\"padding-left:{$padding}px;\">{$row['name']}".($row['notes'] != '' ? "<span style=\"color:#ccc;\">（{$row['notes']}）</span>" : '')."</div></td>
                            <td align=\"center\">{$linkString}</td>
                            <td align=\"center\">". ($row['isDisplay'] == 1 ? '显示' : '隐藏') ."</td>
                            <td align=\"center\">". ($row['status'] == 1 ? '可用' : '不可用') ."</td>
                            <td align=\"center\">". ($row['type'] == 1 ? '产品' : '非产品') ."</td>
                            <td align=\"center\">". ($row['helpUrl'] == '' ? '' : '<a target="_blank" href="/files/document/'. urlencode(iconv('utf-8', 'gbk', $row['helpUrl'])). '">下载文件</a>') ."</td>
                            <td align=\"center\"><input name=\"sort[]\" type=\"text\" id=\"sort\" size=\"10\" class=\"input checkInt\" value=\"{$row['sort']}\" default=\"{$row['sort']}\" /></td>
                            <td width=\"8%\" align=\"center\">
                                <input type=\"hidden\" name=\"ids[]\" value=\"{$row['id']}\" />
                                <a href=\"". $projectUrl->projectUrl(array('action'=>'update', 'id'=>$row['id'])) ."\">编辑</a>
                                <a href=\"". $projectUrl->projectUrl(array('action'=>'insert', 'parentId'=>$row['id'])) ."\">添加</a>
                            </td>
                        </tr>

";